package cn.edu.xmu.oomall.liquidation.microservice;

import cn.edu.xmu.oomall.core.util.ReturnObject;
import cn.edu.xmu.oomall.liquidation.microservice.vo.Category;
import cn.edu.xmu.oomall.liquidation.microservice.vo.SimpleShopVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "shop-service")
public interface ShopService {
    @GetMapping( "/internal/category/{id}")
    InternalReturnObject<Category> getCategoryById(@PathVariable Long id);

    @GetMapping("/shops/{id}")
    InternalReturnObject<SimpleShopVo> getShopsById(@PathVariable Long id);
}
